/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package run_markclass;

/**
 *
 * @author Matt
 */
public class MarkClass {
    private double mark;

    public MarkClass() {
        mark = 100f;
    }

    public MarkClass(double mark) {
        this.mark = mark;
    }

    public double getMark() {
        return mark;
    }

    public void setMark(double mark) {
        this.mark = mark;
    }
    
    public int getAsInt()
    {   return (int)mark;   }
    public double getAsPerc()
    {   return mark/100;  
    
    }
    public boolean checkPassed()
    {   return mark >= 50;  }
    
    public boolean equals(Object m)
    {
        return this.mark == ((MarkClass)m).getMark();
    }
}
